<!--#include("_header.html")-->

<!--%import("./filter/update_env_config.xml")-->
<!--%import("./filter/update_lang_select.xml")-->
<!--%import("./filter/install_ftp_info.xml")-->
<!--%import("../../install/lang")-->
<!--%import("../../install/tpl/js/install_admin.js",optimized=false)-->

<div class="content">
    <!--@if($logged_info->is_admin == 'Y')-->
        <p class="path">
            <a href="{getUrl('','module','admin')}">{$lang->control_panel}</a> 
            &gt; <a href="{getUrl('','mid',$mid,'module',$module,'act',$act)}">{$lang->env_setup}</a>
        </p>
    <!--@end-->

    <h4 class="xeAdmin">{$lang->cmd_setup}</h4>

    <form action="./" method="get" onsubmit="return procFilter(this, update_env_config);">
    <table cellspacing="0" class="rowTable">
    <tr>
        <th><div>{$lang->use_rewrite}</div></th>
        <td>
            <input type="checkbox" name="use_rewrite" value="Y"  <!--@if($use_rewrite=='Y')-->checked="checked"<!--@end--> />
            <p>{$lang->about_rewrite}</p>
        </td>
    </tr>
    <tr>
        <th><div>{$lang->default_url}</div></th>
        <td>
            <input type="text" name="default_url" value="{$default_url}" class="inputTypeText w300"/>
            <p>{$lang->about_default_url}</p>
        </td>
    </tr>
    <tr>
        <th><div>{$lang->use_optimizer}</div></th>
        <td>
            <input type="checkbox" name="use_optimizer" value="Y"  <!--@if($use_optimizer!='N')-->checked="checked"<!--@end--> />
            <p>{$lang->about_optimizer}</p>
        </td>
    </tr>
    <tr>
        <th><div>Language</div></th>
        <td>
            <select name="change_lang_type">
                <!--@foreach($lang_supported as $key => $val)-->
                    <option value="{$key}" <!--@if($key==$selected_lang)-->selected="selected"<!--@end-->>{$val}</option>
                <!--@endforeach-->
            </select>
            <p>{$lang->about_lang_env}</p>
        </td>
    </tr>
    <tr>
        <th><div>{$lang->time_zone}</div></th>
        <td>
            <select name="time_zone" class="fullWidth">
                <!--@foreach($time_zone_list as $key => $val)-->
                <option value="{$key}" <!--@if($time_zone==$key)-->selected="selected"<!--@end-->>{$val}</option>
                <!--@endforeach-->
            </select>
            <p>{$lang->about_time_zone}</p>
        </td>
    </tr>
    <tr>
        <th><div>{$lang->qmail_compatibility}</div></th>
        <td>
            <input type="checkbox" name="qmail_compatibility" value="Y"  <!--@if($qmail_compatibility=='Y')-->checked="checked"<!--@end--> />
            <p>{$lang->about_qmail_compatibility}</p>
        </td>
    </tr>
    <tr>
        <th><div>{$lang->use_ssl}</div></th>
        <td>
            <select name="use_ssl">
            <!--@foreach($lang->ssl_options as $key => $val)-->
                <option value="{$key}" <!--@if($key == $use_ssl)-->selected<!--@end--> >{$val}</option>
            <!--@endforeach-->
            </select>
            <p>{$lang->about_use_ssl}</p>
        </td>
    </tr>
    <tr>
        <th><div>{$lang->server_ports}</div></th>
        <td>
            HTTP : <input type="text" name="http_port" class="inputTypeText" size="5" value="{$http_port}">, 
            HTTPS: <input type="text" name="https_port" class="inputTypeText" size="5" value="{$https_port}">
            <p>{$lang->about_server_ports}</p>
        </td>
    </tr>
    <tr>
        <th colspan="2" class="button">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_save}" /></span>
        </th>
    </tr>
    </table>
    </form>

    <h4 class="xeAdmin">{$lang->ftp_form_title}</h4>
    <p class="summary">{$lang->about_ftp_info}</p>
    <form action="./" method="post" onsubmit="return procFilter(this, install_ftp_info);" id="ftp_form">
    <table cellspacing="0" class="rowTable">
    <tr>
        <th><div><label for="textfield21">{$lang->user_id}</label></div></th>
        <th><div><label for="textfield22">{$lang->password}</label></div></th>
        <th><div><label for="textfield24">{$lang->ftp_port}</label></div></th>
    </tr>
    <tr>
        <td><input type="text" id="textfield21" name="ftp_user" value="{$ftp_info->ftp_user}" class="inputTypeText" /></td>
        <td><input id="textfield22" type="password" name="ftp_password" value="{$ftp_info->ftp_password}" class="inputTypeText" /></td>
        <td><input id="textfield24" type="text" name="ftp_port" value="{$ftp_info->ftp_port}" class="inputTypeText" /></td>
    </tr>
    <tr>
        <th colspan="3" class="button">
            <span class="button blue"><input type="button" value="{$lang->cmd_check_ftp_connect}" onclick="doCheckFTPInfo(); return false;"/></span>
            <span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" /></span>
        </th>
    </tr>
    </table>
    </form>

</div>

<hr />

<div class="extension e2">
    <div class="section">

        <h4 class="xeAdmin">{$lang->cmd_lang_select}</h4>
        <p class="summary">{$lang->about_cmd_lang_select}</p>
        <form action="./" method="get" onsubmit="return procFilter(this, update_lang_select);">
        <table cellspacing="0" class="rowTable">
        <!--@foreach($langs as $key => $val)-->
        <tr>
            <td>
                <input id="lang_{$key}" type="checkbox" name="selected_lang" value="{$key}" <!--@if(isset($lang_selected[$key]))-->checked="checked"<!--@end--> <!--@if($key==$selected_lang)-->disabled="disabled"<!--@end--> /> <label for="lang_{$key}">{$val}</label>
            </td>
        </tr>
        <!--@endforeach-->
        <tr>
            <th class="button">
                <span class="button black strong"><input type="submit" value="{$lang->cmd_save}" /></span>
            </th>
        </tr>
        </table>
        </form>

        <h4 class="xeAdmin">{$lang->cmd_remake_cache}</h4>
        <p class="summary">{$lang->about_recompile_cache}</p>
        <table cellspacing="0" class="colTable">
        <tr>
            <th class="button">
                <span class="button black strong"><input type="button" value="{$lang->cmd_remake_cache}" onclick="doRecompileCacheFile(); return false;"/></span>
            </th>
        </tr>
        </table>
    </div>
</div>

<!--#include("_footer.html")-->
